const router = require('koa-router')();
const HomeController = require('./controller/home')

router.get('/', HomeController.index)
router.get('/user', HomeController.user)
router.get('/user/detail/:id',HomeController.userDetail)
router.get('/userjson', HomeController.userJson)
router.post('/user/register',HomeController.userRegister)
router.get('/404', HomeController.error)

module.exports = router